/**
 * author:Administrator
 * date:2016/1/4
 * desc:TODO
 */

'use strict';

var connedSeq = require('../conn/sequelize.js');
var Sequelize = require('sequelize');
var DataTypes = Sequelize;

var Model = connedSeq.define('account',
  {
    id: {type: DataTypes.INTEGER(11), allowNull: false, primaryKey: true, autoIncrement: true},
    name: {type: DataTypes.STRING, allowNull: true},
    money: {type: DataTypes.FLOAT, allowNull: true, defaultValue: '0'}
  },
  {
    tableName: 'account',
    freezeTableName: true,
    createdAt: false,
    updatedAt: false
  });

module.exports = Model;
